#include "electricmainwindow.h"

#include <QMenu>
#include <QMenuBar>

#include "Trigger/actionmanager.h"
#include "Trigger/menumanager.h"
#include "Trigger/triggermanager.h"

#include "graphicsscene.h"
#include "graphicsview.h"

#include "toolboxwidget.h"
#include "Property/propertiesandstylewidget.h"


ElectricMainWindow::ElectricMainWindow(QWidget*parent) :
    MainWindow(parent)
{
    this->init();
    this->customizeWindow();
}


ElectricMainWindow::~ElectricMainWindow()
{

}

void ElectricMainWindow::customizeWindow()
{
    this->setWindowFlags(Qt::Dialog);
    mToolboxWgd->setFixedWidth(240);
    mPropWgd->setFixedWidth(240);
    mGraphicsView->setFixedWidth(505);
    mGraphicsView->setSceneRect(0,0,500,500);
    this->setFixedHeight(642);
    this->setFixedWidth(987);

	mGraphicsView->setWheelZoomType(GraphicsView::WheelZoomComponet);
	//mGraphicsView->setKeyControlWheelEnable(false);

	mTriggerManager->m_MenuManager->m_MenuView->removeAction(mTriggerManager->m_MenuManager->m_MenuPanes->menuAction());
	mTriggerManager->m_ActionManager->m_ActionResetView->setVisible(false);
	mTriggerManager->m_MenuManager->m_Menubar->removeAction(mTriggerManager->m_MenuManager->m_MenuTools->menuAction());
	mEnablePropVisible = true;
	mPropWgd->setVisible(true);
}

void ElectricMainWindow::init()
{
    this->createConnect();
}

void ElectricMainWindow::createConnect()
{
}
